package cn.rkylin.oms.aftersale.sysrefund.domain;

import cn.rkylin.oms.common.base.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

public class SysRefund extends BaseEntity {
    /**
     * serialVersionUID:序列化ID.
     */
    private static final long serialVersionUID = -1517085151894763572L;

    /**
     * 退款单Id
     */
    private String refundId;

    /**
     * 退款编号
     */
    private String refundCode;

    /**
     * 平台退款单号
     */
    private String ecRefundCode;

    /**
     * 订单Id
     */
    private String orderId;
    /**
     * 订单Code
     */
    private String orderCode;

    /**
     * 企业id
     */
    private String entId;

    /**
     * 项目id
     */
    private String prjId;

    /**
     * 网店id
     */
    private String shopId;

    /**
     * 网店名称
     */
    private String shopName;

    /**
     * 删除标记
     */
    private String deleted;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    /**
     * 状态
     */
    private String refundStatus;

    /**
     * 退款状态
     */
    private String ecRefundStatus;

    /**
     * 审核时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date apprTime;

    /**
     * 买家留言
     */
    private String buyerRemark;

    /**
     * 买家账号
     */
    private String buyerNick;

    /**
     * 退款金额
     */
    private BigDecimal refundFee;

    /**
     * 是否退货
     */
    private String hasGoodReturn;

    /**
     * 退货地址
     */
    private String refundAddress;

    /**
     * 货物状态
     */
    private String goodStus;

    /**
     * 物流公司
     */
    private String lgstName;

    /**
     * 物流单号
     */
    private String lgstNo;
    /**
     * 买家支付宝账号
     */
    private String alipayId;

    public String getAlipayId() {
        return alipayId;
    }

    public void setAlipayId(String alipayId) {
        this.alipayId = alipayId;
    }

    /**
     * 申请退款时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date refundCreateTime;

    /**
     * 超时时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date refundTimeout;

    /**
     * 退款时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date refundTime;

    /**
     * 关闭时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date closeTime;

    /**
     * 退款时段(onsale、aftersale)
     */
    private String refundPhase;

    /**
     * 原因Id
     */
    private String refundReasonId;

    /**
     * 退款原因类型
     */
    private String refundReasonName;

    /**
     * 退款原因
     */
    private String refundReason;

    /**
     * 废弃状态
     */
    private String isCancel;
    /**
     * 是否自动创建
     */
    private String isAutoCreate;

    /**
     * 退款单Id
     *
     * @return refund_id 退款单Id
     */
    public String getRefundId() {
        return refundId;
    }

    /**
     * 退款单Id
     *
     * @param refundId 退款单Id
     */
    public void setRefundId(String refundId) {
        this.refundId = refundId;
    }

    /**
     * 退款编号
     *
     * @return refund_code 退款编号
     */
    public String getRefundCode() {
        return refundCode;
    }

    /**
     * 退款编号
     *
     * @param refundCode 退款编号
     */
    public void setRefundCode(String refundCode) {
        this.refundCode = refundCode;
    }

    /**
     * 平台退款单号
     *
     * @return ec_refund_code 平台退款单号
     */
    public String getEcRefundCode() {
        return ecRefundCode;
    }

    /**
     * 平台退款单号
     *
     * @param ecRefundCode 平台退款单号
     */
    public void setEcRefundCode(String ecRefundCode) {
        this.ecRefundCode = ecRefundCode;
    }

    /**
     * 订单Id
     *
     * @return order_id 订单Id
     */
    public String getOrderId() {
        return orderId;
    }

    /**
     * 订单Id
     *
     * @param orderId 订单Id
     */
    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    /**
     * 企业id
     *
     * @return ent_id 企业id
     */
    public String getEntId() {
        return entId;
    }

    /**
     * 企业id
     *
     * @param entId 企业id
     */
    public void setEntId(String entId) {
        this.entId = entId;
    }

    /**
     * 项目id
     *
     * @return prj_id 项目id
     */
    public String getPrjId() {
        return prjId;
    }

    /**
     * 项目id
     *
     * @param prjId 项目id
     */
    public void setPrjId(String prjId) {
        this.prjId = prjId;
    }

    /**
     * 网店id
     *
     * @return shop_id 网店id
     */
    public String getShopId() {
        return shopId;
    }

    /**
     * 网店id
     *
     * @param shopId 网店id
     */
    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    /**
     * 网店名称
     *
     * @return shop_name 网店名称
     */
    public String getShopName() {
        return shopName;
    }

    /**
     * 网店名称
     *
     * @param shopName 网店名称
     */
    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    /**
     * 删除标记
     *
     * @return deleted 删除标记
     */
    public String getDeleted() {
        return deleted;
    }

    /**
     * 删除标记
     *
     * @param deleted 删除标记
     */
    public void setDeleted(String deleted) {
        this.deleted = deleted;
    }

    /**
     * 创建时间
     *
     * @return create_time 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 创建时间
     *
     * @param createTime 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 修改时间
     *
     * @return update_time 修改时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 修改时间
     *
     * @param updateTime 修改时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 状态
     *
     * @return refund_status 状态
     */
    public String getRefundStatus() {
        return refundStatus;
    }

    /**
     * 状态
     *
     * @param refundStatus 状态
     */
    public void setRefundStatus(String refundStatus) {
        this.refundStatus = refundStatus;
    }

    /**
     * 退款状态
     *
     * @return ec_refund_status 退款状态
     */
    public String getEcRefundStatus() {
        return ecRefundStatus;
    }

    /**
     * 退款状态
     *
     * @param ecRefundStatus 退款状态
     */
    public void setEcRefundStatus(String ecRefundStatus) {
        this.ecRefundStatus = ecRefundStatus;
    }

    /**
     * 审核时间
     *
     * @return appr_time 审核时间
     */
    public Date getApprTime() {
        return apprTime;
    }

    /**
     * 审核时间
     *
     * @param apprTime 审核时间
     */
    public void setApprTime(Date apprTime) {
        this.apprTime = apprTime;
    }

    /**
     * 买家留言
     *
     * @return buyer_remark 买家留言
     */
    public String getBuyerRemark() {
        return buyerRemark;
    }

    /**
     * 买家留言
     *
     * @param buyerRemark 买家留言
     */
    public void setBuyerRemark(String buyerRemark) {
        this.buyerRemark = buyerRemark;
    }

    /**
     * 买家账号
     *
     * @return buyer_nick 买家账号
     */
    public String getBuyerNick() {
        return buyerNick;
    }

    /**
     * 买家账号
     *
     * @param buyerNick 买家账号
     */
    public void setBuyerNick(String buyerNick) {
        this.buyerNick = buyerNick;
    }

    /**
     * 退款金额
     *
     * @return refund_fee 退款金额
     */
    public BigDecimal getRefundFee() {
        return refundFee;
    }

    /**
     * 退款金额
     *
     * @param refundFee 退款金额
     */
    public void setRefundFee(BigDecimal refundFee) {
        this.refundFee = refundFee;
    }

    /**
     * 是否退货
     *
     * @return has_good_return 是否退货
     */
    public String getHasGoodReturn() {
        return hasGoodReturn;
    }

    /**
     * 是否退货
     *
     * @param hasGoodReturn 是否退货
     */
    public void setHasGoodReturn(String hasGoodReturn) {
        this.hasGoodReturn = hasGoodReturn;
    }

    /**
     * 退货地址
     *
     * @return refund_address 退货地址
     */
    public String getRefundAddress() {
        return refundAddress;
    }

    /**
     * 退货地址
     *
     * @param refundAddress 退货地址
     */
    public void setRefundAddress(String refundAddress) {
        this.refundAddress = refundAddress;
    }

    /**
     * 货物状态
     *
     * @return good_stus 货物状态
     */
    public String getGoodStus() {
        return goodStus;
    }

    /**
     * 货物状态
     *
     * @param goodStus 货物状态
     */
    public void setGoodStus(String goodStus) {
        this.goodStus = goodStus;
    }

    /**
     * 物流公司
     *
     * @return lgst_name 物流公司
     */
    public String getLgstName() {
        return lgstName;
    }

    /**
     * 物流公司
     *
     * @param lgstName 物流公司
     */
    public void setLgstName(String lgstName) {
        this.lgstName = lgstName;
    }

    /**
     * 物流单号
     *
     * @return lgst_no 物流单号
     */
    public String getLgstNo() {
        return lgstNo;
    }

    /**
     * 物流单号
     *
     * @param lgstNo 物流单号
     */
    public void setLgstNo(String lgstNo) {
        this.lgstNo = lgstNo;
    }

    /**
     * 申请退款时间
     *
     * @return refund_create_time 申请退款时间
     */
    public Date getRefundCreateTime() {
        return refundCreateTime;
    }

    /**
     * 申请退款时间
     *
     * @param refundCreateTime 申请退款时间
     */
    public void setRefundCreateTime(Date refundCreateTime) {
        this.refundCreateTime = refundCreateTime;
    }

    /**
     * 超时时间
     *
     * @return refund_timeout 超时时间
     */
    public Date getRefundTimeout() {
        return refundTimeout;
    }

    /**
     * 超时时间
     *
     * @param refundTimeout 超时时间
     */
    public void setRefundTimeout(Date refundTimeout) {
        this.refundTimeout = refundTimeout;
    }

    /**
     * 退款时间
     *
     * @return refund_time 退款时间
     */
    public Date getRefundTime() {
        return refundTime;
    }

    /**
     * 退款时间
     *
     * @param refundTime 退款时间
     */
    public void setRefundTime(Date refundTime) {
        this.refundTime = refundTime;
    }

    /**
     * 关闭时间
     *
     * @return close_time 关闭时间
     */
    public Date getCloseTime() {
        return closeTime;
    }

    /**
     * 关闭时间
     *
     * @param closeTime 关闭时间
     */
    public void setCloseTime(Date closeTime) {
        this.closeTime = closeTime;
    }

    /**
     * 退款时段(onsale、aftersale)
     *
     * @return refund_phase 退款时段(onsale、aftersale)
     */
    public String getRefundPhase() {
        return refundPhase;
    }

    /**
     * 退款时段(onsale、aftersale)
     *
     * @param refundPhase 退款时段(onsale、aftersale)
     */
    public void setRefundPhase(String refundPhase) {
        this.refundPhase = refundPhase;
    }

    /**
     * 原因Id
     *
     * @return refund_reason_id 原因Id
     */
    public String getRefundReasonId() {
        return refundReasonId;
    }

    /**
     * 原因Id
     *
     * @param refundReasonId 原因Id
     */
    public void setRefundReasonId(String refundReasonId) {
        this.refundReasonId = refundReasonId;
    }

    /**
     * 退款原因类型
     *
     * @return refund_reason_name 退款原因类型
     */
    public String getRefundReasonName() {
        return refundReasonName;
    }

    /**
     * 退款原因类型
     *
     * @param refundReasonName 退款原因类型
     */
    public void setRefundReasonName(String refundReasonName) {
        this.refundReasonName = refundReasonName;
    }

    /**
     * 退款原因
     *
     * @return refund_reason 退款原因
     */
    public String getRefundReason() {
        return refundReason;
    }

    /**
     * 退款原因
     *
     * @param refundReason 退款原因
     */
    public void setRefundReason(String refundReason) {
        this.refundReason = refundReason;
    }

    /**
     * 废弃状态
     *
     * @return is_cancel 废弃状态
     */
    public String getIsCancel() {
        return isCancel;
    }

    /**
     * 废弃状态
     *
     * @param isCancel 废弃状态
     */
    public void setIsCancel(String isCancel) {
        this.isCancel = isCancel == null ? null : isCancel.trim();
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public String getIsAutoCreate() {
        return isAutoCreate;
    }

    public void setIsAutoCreate(String isAutoCreate) {
        this.isAutoCreate = isAutoCreate;
    }
    
    /**
     * rejectTime:拒绝事件.
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date rejectTime;
    /**
     * refundChannel:退款渠道. online 线上、offline 线下
     */
    private String refundChannel;
    /**
     * refundType:退款方式：alipay支付宝，transfer银行转帐.
     */
    private String refundType;

    public Date getRejectTime() {
        return rejectTime;
    }

    public void setRejectTime(Date rejectTime) {
        this.rejectTime = rejectTime;
    }

    public String getRefundChannel() {
        return refundChannel;
    }

    public void setRefundChannel(String refundChannel) {
        this.refundChannel = refundChannel;
    }

    public String getRefundType() {
        return refundType;
    }

    public void setRefundType(String refundType) {
        this.refundType = refundType;
    }
}